package com.test.linkLlist.doublelinkLlist;

public class MyDoubleLink {
	private Node current;
	private Node head;
	private int size;
	
	MyDoubleLink(){
		current = new Node(null);
		head = current;
		head.next = current;
		head.prior = current;
		size = 0;
	}
	
	private class Node{
		Node prior;
		Node next;
		Object data;
		Node(Object data){
			this.data = data;
			this.prior = null;
			this.next = null;
		}
	}
	
	public void moveCurrent(int position){
		
	}
	
	public void add(int position, Object data){
		if(position < 0 || position > size - 1){
			System.out.println("存储位置不对： " + position);
			return;
		}
		
		
	}
}
